if(getValue('reset_fetion?') != false) {
<% if not has_logined_by_user? %>
<% elsif current_user.mobile.blank? %>
  if(confirm('是否将手机号【<%= params[:mobile] %>】与您账号绑定？这样子，您就不必每次都输入手机号和密码了。') && getValue('reset_fetion?') != false) {
    <%= remote_function :url => update_fetion_in_web_fetion_portalet_user_url(current_user),
          :method => :put,
          :with => "'&mobile=#{params[:mobile]}&password=#{params[:password]}'",
          :success => "alert('绑定成功！')",
          :failure => "alert('绑定失败！')"
     %>     
  } else {
    setValue('reset_fetion?',false);
  }
<% elsif current_user.mobile != params[:mobile] && params[:mobile].present? %>  
    if(confirm('是否将手机号【<%= params[:mobile] %>】取代您先前绑定的手机号【<%= current_user.mobile %>】？')) {
      <%= remote_function :url => update_fetion_in_web_fetion_portalet_user_url(current_user),
            :method => :put,
            :with => "'&mobile=#{params[:mobile]}&password=#{params[:password]}'",
            :success => "alert('绑定成功！')",
            :failure => "alert('绑定失败！')"
       %>     
    } else {
      setValue('reset_fetion?',false);
    }  
<% elsif current_user.fetion_password != params[:password] && params[:password].present? %>
  <%= remote_function :url => update_fetion_in_web_fetion_portalet_user_url(current_user),
          :method => :put,
          :with => "'&mobile=#{params[:mobile]}&password=#{params[:password]}'"
   %>
<% else %>
<% end %>
}